-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: PodMonitor #2921
base: master
Are you sure you want to change the base?
fix: PodMonitor #2921
Conversation
Hi @kariya-mitsuru. Thanks for your PR! I am @adamjensenbot.
Make sure this PR appears in the liqo changelog, adding one of the following labels:
|
@@ -50,7 +50,7 @@ spec: | |||
resources: {{- toYaml .Values.crdReplicator.pod.resources | nindent 12 }} | |||
ports: | |||
- name: metrics | |||
containerPort: 8082 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @kariya-mitsuru, thanks for your PR. Can you keep the "8082" port and add a flag inside the CRD replicator to set the port, please?
Could you edit /cmd/crd-replicator/main.go.
Check this
liqo/cmd/liqo-controller-manager/main.go
Line 106 in c2f889a
metricsAddr := pflag.String("metrics-address", ":8082", "The address the metric endpoint binds to") |
* crd-replicator Commit 10ef308 changed the default port for metrics from 8080 to 8082, but crd-replicator was not changed because there is no command line option. However, only the deployment port was changed to 8082, so PodMonitor no longer works properly. This commit adds the command line option, which defaults to 8082. * virtualkubelet Commit ddafea0 changed the label of VirtualKubelet but did not change the PodMonitor selector so it no longer works correctly. This commit makes PodMonitor's selector follow commit ddafea0. Signed-off-by: Mitsuru Kariya <[email protected]>
6f16407
to
b3055e3
Compare
Description
Fix
PodMonitor
.crd-replicator
Commit 10ef308 changed the default port for metrics from
8080
to8082
, but crd-replicator was not changed because there is no command line option. However, only theDeployment
port was changed to 8082, soPodMonitor
no longer works properly.This commit reverts the
Deployment
port back to8080
.VirtualKubelet
Commit ddafea0 changed the label of VirtualKubelet but did not change the
PodMonitor
selector so it no longer works correctly.This commit makes
PodMonitor
's selector follow commit ddafea0.